<template>
		<!-- <view class="u-rela" :style="{height:customHeader.bottom+'px'}"> -->
			<!-- 自定义头部start -->
			<view class="header u-flex white"
				:style="{paddingTop:customHeader.top+'px',height:customHeader.bottom+'px',paddingLeft:customHeader.menuRightGap+'px'}">
				<u-icon name="arrow-left" class="icon-back" @click="handleBack"></u-icon>
				<text class="u-font-34 blod u-m-l-10">{{title}}</text>
			</view>
			<!-- 自定义头部end -->
		<!-- </view> -->
	
</template>

<script>
	import customHeaderMixin from '../mixins/customHeaderMixin.js'
	export default {
		name:"customHeader",
		mixins: [customHeaderMixin],
		props:{
			title:{
				type:String,
				default:''
			}
		},
		data() {
			return {
			};
		},
		methods:{
			handleBack(){
				// console.log(123)
				// // uni.switchTab({
				// // 	url:'/pages/index/index'
				// // })
				// const pages=getCurrentPages()
				// console.log(pages)
				uni.navigateBack()
			}
		},
		mounted(){
			
			
		}
	}
</script>

<style scoped lang="scss">
	.header{
		position: fixed;
		left:0;
		top:0;
		z-index:9999
	}
	.icon-back{
		position: relative;
		z-index:3
	}
</style>